package com.wis.controller;

import com.wis.service.LiveCourseService;
import com.wis.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/liveCourse")
public class LiveCourseController {
    @Autowired
    private LiveCourseService liveCourseService;
    @RequestMapping("/selectLiveCourse")
    public CommonResult selectLiveCourse(            @RequestParam(required = false) String tName,
                                                     @RequestParam(required = false) String cName) {
        return liveCourseService.selectLiveCourse(tName,cName);
    }
}
